<html>
<head><meta charset="utf-8"><title>automatically delete unused stderr files · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html">automatically delete unused stderr files</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206440590"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206440590" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206440590">(Aug 10 2020 at 09:03)</a>:</h4>
<p>When changing a test to use revisions, the old <code>test_name.stderr</code> file still exists even if it is unused.</p>
<p>Is there a way to automatically remove these files?</p>



<a name="206440620"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206440620" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206440620">(Aug 10 2020 at 09:03)</a>:</h4>
<p>One can probably just use <code>rm **/*.stderr</code> or something like this and then rerun all tests</p>



<a name="206441455"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206441455" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206441455">(Aug 10 2020 at 09:15)</a>:</h4>
<p>git clean src/test/ui</p>



<a name="206441736"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206441736" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206441736">(Aug 10 2020 at 09:18)</a>:</h4>
<p>does that remove already commited files?</p>



<a name="206442004"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206442004" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206442004">(Aug 10 2020 at 09:21)</a>:</h4>
<p>It shouldn't</p>



<a name="206442106"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206442106" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206442106">(Aug 10 2020 at 09:22)</a>:</h4>
<p>yeah, then that sadly doesn't help me here</p>



<a name="206442399"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206442399" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206442399">(Aug 10 2020 at 09:25)</a>:</h4>
<p>Oh, thought you meant removing uncommitted files</p>



<a name="206442510"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206442510" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206442510">(Aug 10 2020 at 09:26)</a>:</h4>
<p>no, <a href="https://github.com/rust-lang/rust/issues/75322">#75322</a> converts existing const generics tests to use revisions so we test both <code>const_generics</code> and <code>min_const_generics</code> and is currently causing quite a few stale <code>.stderr</code> files</p>



<a name="206442852"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206442852" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206442852">(Aug 10 2020 at 09:31)</a>:</h4>
<p>it's very hard to know whether a test is emitting <code>.stderr</code> files and which ones are stale. Some of them may only be generated on specific platforms</p>



<a name="206442860"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206442860" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206442860">(Aug 10 2020 at 09:32)</a>:</h4>
<p>we have the same problem with mir optimizations</p>



<a name="206454868"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206454868" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206454868">(Aug 10 2020 at 12:30)</a>:</h4>
<p>Just delete all stderr files and regenerate them with --bless <span aria-label="wink" class="emoji emoji-1f609" role="img" title="wink">:wink:</span></p>



<a name="206454900"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206454900" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206454900">(Aug 10 2020 at 12:30)</a>:</h4>
<p>Only half joking though, that sounds like the easiest way if you don't mind running all 10000 UI tests</p>



<a name="206454936"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206454936" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206454936">(Aug 10 2020 at 12:31)</a>:</h4>
<p>Yeah, seems like the right way to go about this except only for <code>src/test/ui/const-generics</code></p>



<a name="206455004"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/automatically%20delete%20unused%20stderr%20files/near/206455004" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/automatically.20delete.20unused.20stderr.20files.html#206455004">(Aug 10 2020 at 12:32)</a>:</h4>
<blockquote>
<p>Some of them may only be generated on specific platforms</p>
</blockquote>
<p>this luckily isn't a concern for const generics tests</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>